package com.dongdongshop.mapper;

import com.dongdongshop.pojo.TbItemCat;
import com.dongdongshop.pojo.TbItemCatExample;
import java.util.List;

import com.dongdongshop.pojo.TbTypeTemplate;
import org.apache.ibatis.annotations.Param;

public interface TbItemCatMapper {
    int countByExample(TbItemCatExample example);

    int deleteByExample(TbItemCatExample example);

    int deleteByPrimaryKey(Long id);

    int insert(TbItemCat record);

    int insertSelective(TbItemCat record);

    List<TbItemCat> selectByExample(TbItemCatExample example);

    TbItemCat selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") TbItemCat record, @Param("example") TbItemCatExample example);

    int updateByExample(@Param("record") TbItemCat record, @Param("example") TbItemCatExample example);

    int updateByPrimaryKeySelective(TbItemCat record);

    int updateByPrimaryKey(TbItemCat record);

    /*int selectCounts(Long parentId);

    List<TbItemCat> selectByPage(@Param("startIndex") int startIndex, @Param("pageSize") Integer pageSize, @Param("parentId") Long parentId);

    List<TbItemCat> selectByPages(@Param("startIndex") int startIndex, @Param("pageSize") Integer pageSize,@Param("id") Long id);*/

    List<TbItemCat> getListItemCat(@Param("startPage") Integer startPage,@Param("pageSize") Integer pageSize,@Param("parentId") Long parentId);

    Integer selectCount(@Param("parentId") Long parentId);

    int deleteBatchCat(@Param("ids")Integer[] ids);

    List<TbItemCat> getInfoById(@Param("parentId") Long parentId);


}